package com.wolfword.crawler.client.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 
 * @author ServerZhang
 * @date 2018年1月22日
 */
@Component
public class Config { 
	
	@Value("${crawler.server.host}")
	private String cralwer_server_host;
	@Value("${request.task.count}")
	private Integer requestTaskCount;
	@Value("${html.store.path}")
	private String htmlStorePath;
	@Value("${html.temp.path}")
	private String htmlTempPath;
	
	//@Value("${crawler.thread.count}")
	public static Integer crawlerThreadCount=5;//通过main传参
	
	public static String serverHost=null;//通过main传参

	
	public String getHtmlTempPath() {
		return htmlTempPath;
	}

	public void setHtmlTempPath(String htmlTempPath) {
		this.htmlTempPath = htmlTempPath;
	}

	public String getHtmlStorePath() {
		return htmlStorePath;
	}

	public void setHtmlStorePath(String htmlStorePath) {
		this.htmlStorePath = htmlStorePath;
	}

	public Integer getRequestTaskCount() {
		return requestTaskCount;
	}

	public void setRequestTaskCount(Integer requestTaskCount) {
		this.requestTaskCount = requestTaskCount;
	}

	public String getCralwer_server_host() {
		return cralwer_server_host;
	}

	public void setCralwer_server_host(String cralwer_server_host) {
		this.cralwer_server_host = cralwer_server_host;
	}


}
